package cn.qing.pojo;

import lombok.Data;

import java.util.List;

@Data
public class UserInfo {

    private int  id;
    private String username;
    private String email;
    private String password;
    private String phoneNum;
    private int status;
    private String statusStr;
    private List<Role> roles;



    public String getStatusStr() {
        if (status == 0) {
            statusStr = "未启用";
        } else if (status == 1) {
            statusStr = "启用";
        }
        return statusStr;
    }

}
